Skip to content

Build and bundle SDL2 for macOS releases - #1344

Open
Circa-III wants to merge 4 commits into
JACoders:masterfrom
Circa-III:master
Open

Build and bundle SDL2 for macOS releases#1344
Circa-III wants to merge 4 commits into
JACoders:masterfrom
Circa-III:master

Conversation

@Circa-III

@Circa-III Circa-III commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Build SDL2 2.32.10 from source for macOS release builds and bundle it inside each generated application bundle.

  • Build a pinned SDL2 release during CI
  • Link OpenJK against the source-built SDL2
  • Bundle libSDL2-2.0.0.dylib into each .app
  • Preserve internal libraries for portable builds while excluding the Windows-only bundled SDL2 libraries
  • Verify the bundled SDL runtime during CI

Bundle libSDL3.dylib into each generated macOS application bundle to support Homebrew's sdl2-compat packaging.

- Install sdl2-compat and SDL3
- Bundle libSDL3.dylib into each .app
- Re-sign modified app bundles
- Verify bundled SDL runtime during CI
@Circa-III
Circa-III requested a review from a team as a code owner July 12, 2026 18:03
@Circa-III Circa-III changed the title Bundle SDL3 in macOS app bundles Build and bundle SDL2 for macOS releases Jul 29, 2026
@Circa-III

Copy link
Copy Markdown
Contributor Author

Ditched homebrew altogether for macos SDL2, uses a pinned SDL2 build and bundles that. Tested on macOS 27 Dev Beta 4 on a MacBook Pro (M3 Pro). I do not have an older intel Mac to test with.
Screenshot 2026-07-29 at 2 16 12 PM
Also tested other artifacts on ubuntu 64bit and windows 11 just in case I broke something on those OSes but they launch fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant